package com.wengzw.service;

import com.wengzw.dao.SearchMapper;
import com.wengzw.po.Customer;
import com.wengzw.po.User;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class SearchServiceImpl implements SearchService {

    @Resource
    private SearchMapper searchMapper;
    public List<Customer> findCustomerList() {
    	System.out.println(searchMapper.findCustomerList());
        return searchMapper.findCustomerList();
    }
    public List<User> findUserList() {
    	System.out.println(searchMapper.findUserList());
        return searchMapper.findUserList();
    }
}
